﻿using System;
using System.Collections.Generic;
using System.Text;
using NHibernate;
using NHibernate.Criterion;
using Nissen_Model;

namespace Nissen_Dao
{
	public class LoginLogDao :DaoBase
	{
		public void SaveOrUpdateLoginLog(LoginLog loginLog)
		{
			using (ISession session = this.SessionFactory.OpenSession())
			{
				using (ITransaction t1 = session.BeginTransaction())
				{
					session.SaveOrUpdate(loginLog);

					t1.Commit();
				}

			}
		}
	}
}
